package com.lx.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.lx.enums.StatusEnum;
import lombok.Data;

import java.util.Date;

@Data
@TableName("account")
public class User {

    @TableId(type = IdType.AUTO)
    private String id;
    private String username;
    private Integer age;
    //exist表示是否为数据库字段 select表示是否查询该字段  fill表示是否自动填充
    @TableField(exist = false)
    private String password;
    @TableField(fill = FieldFill.INSERT)
    private Date creatTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @Version
    private Integer version;
    private StatusEnum status;
    @TableLogic //逻辑删除
    private Integer deletd;







}
